package org.charles.zhifou.scoring;

import org.charles.zhifou.model.entity.App;
import org.charles.zhifou.model.entity.UserAnswer;

/**
 * 评分策略
 *
 * @author charles
 * @version 1.0
 */
public interface ScoringStrategy {

    /**
     * 执行评分 (结果直接原地写在 userAnswer 中)
     *
     * @param userAnswer
     * @param app
     * @return
     * @throws Exception
     */
    void doScore(UserAnswer userAnswer, App app) throws Exception;
}